#
# elasticsearch-6 5.15.2
# Dependyce JDK8
#


FROM yi/centos7-jdk8u151
MAINTAINER zezhong.shang <1044732267@qq.com>
ADD  kibana-6.2.4-linux-x86_64.tar.gz /usr/local/
COPY kibana.yml /usr/local/kibana-6.2.4-linux-x86_64/config/

# Install libs
WORKDIR /usr/local/
RUN groupadd kibana
RUN useradd kibana -g kibana -p kibana
RUN chown -R kibana:kibana kibana-6.2.4-linux-x86_64
RUN chown -R kibana:kibana /usr/bin/supervisord
RUN touch /usr/local/supervisord.log
RUN chown -R kibana:kibana /usr/local/supervisord.log

USER kibana

EXPOSE 5601

COPY supervisord.conf /etc/supervisord.conf
CMD ["/usr/bin/supervisord"]